
<?php
include __DIR__ ."../../PHP/db.php";

$height = 650;
$width = 650;
$from = $_POST['from'];
$employer_id = $_POST['employer_id'];
$type = $_POST['type'];


$result = array();
if($type == "logo")
{
   $result['status'] = uploadLogo($employer_id,$from,$height,$width);	
}
else if($type == "cover")
{
   $result['status'] = uploadCover($employer_id,$from,$height,$width);		
}


echo json_encode($result);
die;



?>
